<script>
var tests = [];
window.onmessage = function (event) {
    tests.push({event: event, eventData: event.data});
    event.source.postMessage("blargh", "*");
}
</script>
